package com.kitchen.ui.dialog.shop
{
	import com.kitchen.AbstractIcon;
	
	import flash.display.BitmapData;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	public class GridCellBgIcon extends AbstractIcon
	{
		private static var bitdata:BitmapData = null;
		public function GridCellBgIcon(bitmapData:BitmapData)
		{
			super(bitmapData);
		}
		
		override protected function cutRec(bitmapData:BitmapData):BitmapData{
			this.w = 700;
			this.h = 85;
			if(GridCellBgIcon.bitdata === null){
			var rec:Rectangle = new Rectangle(185, 0, this.w, this.h);
			GridCellBgIcon.bitdata = new BitmapData(this.w, this.h);
			GridCellBgIcon.bitdata.copyPixels(bitmapData, rec, new Point());
			}
			return GridCellBgIcon.bitdata;
		}
	}
}